#include "stdafx.h"
#include "CppUnitTest.h"
#include "..\CanvasStaticLib\Canvas\Canvas.h"

using namespace Microsoft::VisualStudio::CppUnitTestFramework;

namespace CanvasUnitTest
{		
	using namespace Canvas;
	using namespace Canvas::Collection;
	TEST_CLASS(CollectionUnitTest)
	{
	public:

		TEST_METHOD(TestCollectionList)
		{
			List<int> fuck;
			fuck.Add(1);
			fuck.Add(2);
			Assert::AreEqual(fuck.Count(), 2);
			Assert::IsTrue(fuck.Contains(1));

			Assert::ExpectException<OutOfRange>([&fuck]() {
				fuck.Get(fuck.Count());
			});
		}

	};

	TEST_CLASS(TestCollectionDict)
	{
	public:
	};
}